package com.deltabravomedia.theoldtoad.server;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Crew {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private String name;
    
    @Persistent
	private String age;
	
	@Persistent
	private String hometown;
	
	@Persistent
	private String education;
	
	@Persistent
	private String family;
	
	@Persistent
	private String favDrink;
    
    @Persistent
	private String favFood;
	
	@Persistent
	private String favTeam;
	
	@Persistent
	private String passions;
	
	@Persistent
	private String likes;
	
	@Persistent
	private String dislikes;
		
    @Persistent
    private Date date;
	
	public Crew(String name, String age, String hometown, String education, String family, 
			String favDrink, String favFood, String favTeam, String passions, 
			String likes, String dislikes, Date date) {
        this.setName(name);
        this.setAge(age);
        this.setHometown(hometown);
        this.setEducation(education);
        this.setFamily(family);
        this.setFavDrink(favDrink);
        this.setFavFood(favFood);
        this.setFavTeam(favTeam);
        this.setPassions(passions);
        this.setLikes(likes);
        this.setDislikes(dislikes);
        this.setDate(date);
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getAge() {
		return age;
	}

	public void setHometown(String hometown) {
		this.hometown = hometown;
	}

	public String getHometown() {
		return hometown;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public String getEducation() {
		return education;
	}

	public void setFamily(String family) {
		this.family = family;
	}

	public String getFamily() {
		return family;
	}

	public void setFavDrink(String favDrink) {
		this.favDrink = favDrink;
	}

	public String getFavDrink() {
		return favDrink;
	}

	public void setFavFood(String favFood) {
		this.favFood = favFood;
	}

	public String getFavFood() {
		return favFood;
	}

	public void setFavTeam(String favSportsTeam) {
		this.favTeam = favSportsTeam;
	}

	public String getFavTeam() {
		return favTeam;
	}

	public void setPassions(String passions) {
		this.passions = passions;
	}

	public String getPassions() {
		return passions;
	}

	public void setLikes(String likes) {
		this.likes = likes;
	}

	public String getLikes() {
		return likes;
	}

	public void setDislikes(String dislikes) {
		this.dislikes = dislikes;
	}

	public String getDislikes() {
		return dislikes;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getDate() {
		return date;
	}
}